package com.jdd.modules.device.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.jdd.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 设备表
 * </p>
 *
 * @author zly
 * @since 2022-03-24
 */
@Data
@ApiModel(value="TDevice对象", description="设备表")
public class TDevice implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id")
    private String id;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "项目区域id")
    private String projectId;

    @ApiModelProperty(value = "项目名称")
    private String projectName;

    @ApiModelProperty(value = "设备编号")
    private Integer deviceNum;

    @ApiModelProperty(value = "设备类型编码")
    private String deviceCode;


    @ApiModelProperty(value = "设备型号")
    @Dict(dicCode = "device_model")
    private String deviceModel;

    @ApiModelProperty(value = "设备别名")
    private String deviceAlias;

    @ApiModelProperty(value = "通讯方式")
    private String swapType;

    @ApiModelProperty(value = "通讯地址")
    private String swapAddress;

    @ApiModelProperty(value = "设备sn号")
    private String deviceSn;

    @ApiModelProperty(value = "机号")
    private String machineNum;

    @ApiModelProperty(value = "设备版本号")
    private String deviceVersion;

    @ApiModelProperty(value = "状态1-正常2-停用")
    private Boolean status;

    @ApiModelProperty(value = "设备名称")
    private String deviceName;

    @ApiModelProperty(value = "创建人")
    private String createUser;

    private String parentCode;
    private String code;
    private String areaId;
    private String areaName;
    @TableField(value = "building_id",updateStrategy = FieldStrategy.IGNORED)
    private String buildingId;
    @TableField(value = "unit_id",updateStrategy = FieldStrategy.IGNORED)
    private String unitId;
    @TableField(value = "floor_id",updateStrategy = FieldStrategy.IGNORED)
    private String floorId;
    @TableField(value = "house_id",updateStrategy = FieldStrategy.IGNORED)
    private String houseId;


}
